package com.undefined.export.result;

import lombok.Data;

/**
 * 公共返回类
 */
@Data
public class CommonResult<T> {

    private Boolean status = true;

    private String code;

    private String msg;

    private T data;

    public CommonResult() {
        this.code = "0";
        this.msg = "成功";
    }

    public CommonResult(T data) {
        this.code = "0";
        this.msg = "成功";
        this.data = data;
    }
    public CommonResult(String code, String message) {
        this.code = code;
        this.msg = message;
        this.status = false;
    }
}
